package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 验证码对象 dz_code
 * 
 * @author ruoyi
 * @date 2022-10-12
 */
public class DzCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long codeId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String dn;

    /** 验证码 */
    @Excel(name = "验证码")
    private String code;

    private String openid;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /** 是否使用过 */
    @Excel(name = "是否使用过")
    private Long isused;

    public void setCodeId(Long codeId) 
    {
        this.codeId = codeId;
    }

    public Long getCodeId() 
    {
        return codeId;
    }
    public void setDn(String dn) 
    {
        this.dn = dn;
    }

    public String getDn() 
    {
        return dn;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setIsused(Long isused) 
    {
        this.isused = isused;
    }

    public Long getIsused() 
    {
        return isused;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("codeId", getCodeId())
            .append("dn", getDn())
            .append("code", getCode())
            .append("createTime", getCreateTime())
            .append("isused", getIsused())
            .toString();
    }
}
